/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * DigitShopAdminEmployeeForm.java
 *
 * Created on Apr 23, 2011, 6:31:07 PM
 */

package digitshopadminapp;
import org.jdesktop.application.Action;

/**
 *
 * @author tsmyth
 */
public class DigitShopAdminEmployeeForm extends javax.swing.JDialog {

    /** Creates new form DigitShopAdminEmployeeForm */
    public DigitShopAdminEmployeeForm(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
        //getRootPane().setDefaultButton(closeButton);
    }

    public DigitShopAdminEmployeeForm(){
    }
    
    @Action public void closeEmployeeForm() {
        dispose();
    }


    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel_ItemForm = new javax.swing.JLabel();
        jLabel_EmployeeID = new javax.swing.JLabel();
        jLabel_EmployeeName = new javax.swing.JLabel();
        jLabel_EmployeePassword = new javax.swing.JLabel();
        jLabel_EmployeeType = new javax.swing.JLabel();
        jTextField_EmployeeID = new javax.swing.JTextField();
        jTextField_EmployeeName = new javax.swing.JTextField();
        jTextField_EmployeePassowrd = new javax.swing.JTextField();
        jTextField_EmployeeType = new javax.swing.JTextField();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setName("Form"); // NOI18N

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(digitshopadminapp.DigitShopAdminApp.class).getContext().getResourceMap(DigitShopAdminEmployeeForm.class);
        jLabel_ItemForm.setFont(resourceMap.getFont("jLabel_ItemForm.font")); // NOI18N
        jLabel_ItemForm.setText(resourceMap.getString("jLabel_ItemForm.text")); // NOI18N
        jLabel_ItemForm.setName("jLabel_ItemForm"); // NOI18N

        jLabel_EmployeeID.setText(resourceMap.getString("jLabel_EmployeeID.text")); // NOI18N
        jLabel_EmployeeID.setName("jLabel_EmployeeID"); // NOI18N

        jLabel_EmployeeName.setText(resourceMap.getString("jLabel_EmployeeName.text")); // NOI18N
        jLabel_EmployeeName.setName("jLabel_EmployeeName"); // NOI18N

        jLabel_EmployeePassword.setText(resourceMap.getString("jLabel_EmployeePassword.text")); // NOI18N
        jLabel_EmployeePassword.setName("jLabel_EmployeePassword"); // NOI18N

        jLabel_EmployeeType.setText(resourceMap.getString("jLabel_EmployeeType.text")); // NOI18N
        jLabel_EmployeeType.setName("jLabel_EmployeeType"); // NOI18N

        jTextField_EmployeeID.setText(resourceMap.getString("jTextField_EmployeeID.text")); // NOI18N
        jTextField_EmployeeID.setName("jTextField_EmployeeID"); // NOI18N
        jTextField_EmployeeID.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField_EmployeeIDActionPerformed(evt);
            }
        });

        jTextField_EmployeeName.setText(resourceMap.getString("jTextField_EmployeeName.text")); // NOI18N
        jTextField_EmployeeName.setName("jTextField_EmployeeName"); // NOI18N

        jTextField_EmployeePassowrd.setText(resourceMap.getString("jTextField_EmployeePassowrd.text")); // NOI18N
        jTextField_EmployeePassowrd.setName("jTextField_EmployeePassowrd"); // NOI18N

        jTextField_EmployeeType.setText(resourceMap.getString("jTextField_EmployeeType.text")); // NOI18N
        jTextField_EmployeeType.setName("jTextField_EmployeeType"); // NOI18N

        jButton1.setText(resourceMap.getString("jButton1.text")); // NOI18N
        jButton1.setName("jButton1"); // NOI18N
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        jButton2.setText(resourceMap.getString("jButton2.text")); // NOI18N
        jButton2.setName("jButton2"); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel_ItemForm)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel_EmployeeID)
                            .addComponent(jLabel_EmployeeName)
                            .addComponent(jLabel_EmployeePassword)
                            .addComponent(jLabel_EmployeeType))
                        .addGap(33, 33, 33)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jTextField_EmployeeType)
                            .addComponent(jTextField_EmployeePassowrd)
                            .addComponent(jTextField_EmployeeName)
                            .addComponent(jTextField_EmployeeID, javax.swing.GroupLayout.DEFAULT_SIZE, 184, Short.MAX_VALUE)
                            .addComponent(jButton1, javax.swing.GroupLayout.Alignment.TRAILING))
                        .addGap(6, 6, 6)
                        .addComponent(jButton2)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel_ItemForm)
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel_EmployeeID)
                    .addComponent(jTextField_EmployeeID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel_EmployeeName)
                    .addComponent(jTextField_EmployeeName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel_EmployeePassword)
                    .addComponent(jTextField_EmployeePassowrd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel_EmployeeType)
                    .addComponent(jTextField_EmployeeType, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 41, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton1)
                    .addComponent(jButton2))
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jTextField_EmployeeIDActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField_EmployeeIDActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField_EmployeeIDActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jButton1ActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                DigitShopAdminEmployeeForm dialog = new DigitShopAdminEmployeeForm(new javax.swing.JFrame(), true);
                dialog.addWindowListener(new java.awt.event.WindowAdapter() {
                    @Override
                    public void windowClosing(java.awt.event.WindowEvent e) {
                        System.exit(0);
                    }
                });
                dialog.setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JLabel jLabel_EmployeeID;
    private javax.swing.JLabel jLabel_EmployeeName;
    private javax.swing.JLabel jLabel_EmployeePassword;
    private javax.swing.JLabel jLabel_EmployeeType;
    private javax.swing.JLabel jLabel_ItemForm;
    private javax.swing.JTextField jTextField_EmployeeID;
    private javax.swing.JTextField jTextField_EmployeeName;
    private javax.swing.JTextField jTextField_EmployeePassowrd;
    private javax.swing.JTextField jTextField_EmployeeType;
    // End of variables declaration//GEN-END:variables

}
